package plugin.cs2java.utils;

public class StringUtil {
    public static String appendCenter(String text, String center) {
        int count = text.length() / 2 - center.length() / 2;
        StringBuilder sb = new StringBuilder(text);
        sb.append("\r\n");
        for (int index = 0; index < count; index++)
            sb.append(" ");
        sb.append(center);
        return sb.toString();
    }
}
